<div class="Filter">
    Filter:
    <select style="width: 200px;" onchange="<?php echo selectAction('id',"&status=$status&loc=$loc")?>" >
        <option value="0">select tour type</option>
        <?php echo ListTourTypeOption($id)?>
    </select>
    &nbsp;
    <select onchange="<?php echo selectAction('loc',"&id=$id&status=$status")?>" >
        <?php echo ListLocationOption($loc)?>
    </select>
    &nbsp;
    <select onchange="<?php echo selectAction('status',"&id=$id&loc=$loc")?>" >
        <option value="-1">select status</option>
        <?php echo liststatus($status)?>
    </select>
    &nbsp;
    <?php echo inputSearch('search Tour')?>
    <?php echo buttonResetPage()?>
</div>

<form name="form_admin" method="post" action="<?php echo formAction('updatestatus')?>">
    <table width="100%"  cellpadding="4" cellspacing="1" id="tblsort">
    	<tr class="headtb" nodrop="true" nodrag="true">
    		<td width="5%"><?php echo _ORDER?></td>
            <td width="5%"><?php echo inputCheckAll()?></td>
    		<td width="20%" ><?php echo _NAME?></td>
    		<td width="10%" ><?php echo _STATUS?></td>
    		<td width="20%" ><?php echo _ACTIONS?></td>
    		<td>&nbsp;</td>
    	</tr>
    <?php
	foreach($tours as $i => $tour)
	{
	?>
	<tr>
		<td align=center>
			<input class="ordertext" id="listorder_<?php echo $i?>" name="listorder[]"
			value="<?php echo getOrderList($i)?>">
		</td>
        <td align="center"><?php echo inputCheck($tour['iId'])?></td>
		<td nowrap="nowrap">
            <?php echo linkAction('edit',$tour["cName"],'id='.$tour["iId"])?>
            <input type="hidden" name="listid[]" value="<?php echo $tour["iId"]?>" />
		</td>
		<td align=center>
			<select name="liststatus[]" id="iStatus_content_<?php echo $i ?>">
				<?php echo  liststatus($tour["iStatus"]);?>
			</select>
		</td>

		<td align=center>
            <?php echo linkAction('tabs',Tabs,'id='.$tour["iId"])?> -
            <?php echo linkAction('photos',Photos,'id='.$tour['iId'])?>  - 
            <?php echo linkAction('video',Videos,'id='.$tour['iId'])?>  - 
			<?php echo linkAction('edit',_EDIT,'id='.$tour["iId"])?> -
            <?php echo linkAction('delete',_DELETE,'id='.$tour["iId"])?>
		</td>
		<td></td>
	</tr>
	<?php
	}
    if(count($tours)==0)
    {
    ?>
    <tr nodrop="true" nodrag="true">
    			<td align="center" colspan="5"><font color="Red"><?php echo _NOTFOUNDCONTENT?></font></td>
    </tr>
    <?php
    }
    ?>
    </table>
    <?php echo $show_page?>
</form>
<script type="text/javascript">
(new TableDnD).init("tblsort");
</script>
